﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Lawyer.Web.ActivityInfo
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					string ActivityID= strid;
					ShowInfo(ActivityID);
				}
			}
		}
		
	private void ShowInfo(string ActivityID)
	{
		Lawyer.BLL.ActivityInfo bll=new Lawyer.BLL.ActivityInfo();
		Lawyer.Model.ActivityInfo model=bll.GetModel(ActivityID);
		this.lblActivityID.Text=model.ActivityID;
		this.lblType.Text=model.Type;
		this.lblTitle.Text=model.Title;
		this.lblDetail.Text=model.Detail;
		this.lblLawyerID.Text=model.LawyerID;
		this.lblStartDate.Text=model.StartDate.ToString();
		this.lblEndDate.Text=model.EndDate.ToString();
		this.lblFee.Text=model.Fee.ToString();
		this.lblArchiveID.Text=model.ArchiveID;
		this.lblIsArchive.Text=model.IsArchive.ToString();
		this.lblStatus.Text=model.Status.ToString();
		this.lblCreatedBy.Text=model.CreatedBy;
		this.lblCreatedDate.Text=model.CreatedDate.ToString();

	}


    }
}
